import {request} from "../../request";

export function getTaskById(id){
    return request({
        url:`/lswms/task/${id}`,
        method:'get'
    })
}


export function getTaskPage(data){
    return request({
        url:'/lswms/task/page',
        method:'put',
        data:data
    })
}

export function putTask(data){
    return request({
        url:'/lswms/task',
        method:'put',
        data:data
    })
}
export function postTask(data){
    return request({
        url:'/lswms/task',
        method:'post',
        data:data
    })
}

export function deleteTask(data){
    return request({
        url:`/lswms/task`,
        method:'delete',
        data:data
    })
}
export function exportTask(data){
    return request({
        url:`/lswms/task/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function putTaskDone(data){
    return request({
        url:'/lswms/task/done',
        method:'put',
        data:data
    })
}
export function putCreateMoveTask(data){
    return request({
        url:'/lswms/task/move',
        method:'put',
        data:data
    })
}

